{extend name="base" /}
{block name="mip"}
    {include file="mip" /}
{/block}
{block name="header"}
    <meta http-equiv="mobile-agent" content="format=html5; url={:url("/book/" . $article['id'],"","html","m")}" />
    <meta http-equiv="mobile-agent" content="format=xhtml; url={:url("/book/" . $article['id'],"","html","m")}" />
{/block}

{block name="body"}
<!--container-->
<div class="container clearfix">
    <div class="bread">
        <span>您的位置 : </span>
        <a href="{$site_config.site_domain}">{$site_config.site_name}</a> &gt;
        <a href="{:url("/classify/" . $article.category.alias,"","html",true)}" target="_blank">{$article.cid | show_cid_name }</a> &gt;
        <a href="#">{$article.title}</a>
        <p>更新时间：{$article.update_time | date="Y-m-d H:i:s"}</p>
    </div>
    <div class="wrap clearfix">
        <!--primary-->
        <div class="book-info">
            <!--bsse-->
            <dl class="base clearfix">
                <dt>
                    <img src="{$article.local_image | down_image}" alt="{$article.title}">
                    {eq name="$article.full" value="1"}<i class="finish">已完结</i>{else/}<i class="serial">连载中</i>{/eq}
                </dt>
                <dd>
                    <h1>{$article.title}</h1>
                    <p class="info"><span class="source_name">来源：{$article.source_name}</span>作者：<a href="{:url('/author/' . urlencode($article['author']) )}"><span>{$article.author}</span></a><span>分类：{$article.cid | show_cid_name}</span><span>阅读：{$article.reading}</span></p>
                    <p class="intro">{$article.introduction}<b class="more">展开<i></i></b></p>
                    <ul class="btns">
                        <li class="read-online" ><a href="{:url("/chapter/" . $article.last_update_chapter_list[0]['article_id'] . "/" . $article.last_update_chapter_list[0]['id'],"","html",true)}">阅读最新</a></li>
                        <li class="add-bookshelf"><a>放入书架</a></li>
                        <li class="go-review"><a>网友评论</a></li>
                    </ul>
                </dd>
            </dl>
            <!--tags-->
            <!--<div class="tags clearfix">-->
                <!--<p>-->
                    <!--<span>本书标签：</span>-->
                    <!--<a href="/tags/5.html">都市小说</a><a href="/tags/86.html">辣文合集</a>-->
                <!--</p>-->
            <!--</div>-->
            <!--attentions-->
            <div class="attentions">
                <h3>最新章节</h3>
                <ul class="clearfix">
                    {foreach $article.last_update_chapter_list as $chapter}
                    <li><a target="_blank" href="{:url("/chapter/" . $chapter['article_id'] . "/" . $chapter['id'],"","html",true)}">{$chapter.title}</a></li>
                    {/foreach}
                </ul>
            </div>
            <div class="attentions">
                <h3>章节列表</h3>
                <ul class="clearfix">
                    {foreach $article.chapter_list as $chapter}
                    <li><a target="_blank" href="{:url("/chapter/" . $chapter['article_id'] . "/" . $chapter['id'],"","html",true)}">{$chapter.title}</a></li>
                    {/foreach}
                </ul>
            </div>
            <div class="clearfix"></div>
            <?php echo $pages;?>
            <!--chapters-->

            <!--review-->
            <div class="review">
                <h3>网友评论</h3>
                <div class="review-form">
                    <p class="form-item">
                        <textarea class="j-textarea" rows="3">说点什么吧，您的评论是对本书最大的支持</textarea>
                    </p>
                    <p class="form-btns">
                        <span class="count">还可以输入<em class="j-count">200</em>字</span>
                        <button class="j-send" type="submit">发表评论</button>
                    </p>
                    <p class="form-msg"></p>
                </div>
                <div class="more"><a href="javascript:void(0);">查看全部评论</a></div>
            </div>
        </div>
        <!--primary-->
        <!--side-->
        <div class="side-bar">
            <!--book-other-->
            <div class="book-other">
                <div class="qrcode">
                    <span id="j-qrcode"></span>
                    <p>扫一扫，手机随心读</p>
                </div>
            </div>
            <!--hot-tags-->
            <div class="hot-tags">
                <h3>热门专题</h3>
                <ul>
                    {foreach $hot_tags_list as $item}
                    <li>
                        <a href="{:url("/tags/" . $item['id'],"","html",true)}"><img src="{$item.image | down_image}" alt="{$item.title}"><span>{$item.title}</span></a>
                    </li>
                    {/foreach}
                </ul>
            </div>
            <!--new-book-->
            <div class="new-book">
                <h3>推荐小说</h3>
                <ul>
                    {block_list block_id="1006" limit="5"}
                    <li>
                        <a class="pic" title="{$item.title}" href="{:url("/book/" . $item['id'],"","html",true)}"><img src="{$item.local_image | down_image}" alt="{$item.title}"></a>
                        <h5><a href="{:url("/book/" . $item['id'],"","html",true)}" title="{$item.title}">{$item.title}</a></h5>
                        <p>分类：{$item.cid | show_cid_name}</p>
                        <p>状态：{eq name="$item.full" value="1"}已完结{else/}连载中{/eq}</p>
                    </li>
                    {/block_list}
                </ul>
            </div>
        </div>
        <!--/side-->
    </div>
</div>
<!--/container-->
{/block}

{block name="footer"}
<script type="text/javascript" src="__JS__/qrcode.js"></script>
<script type="text/javascript">
    //生成当前URL二维码
    var url = '{:url("/book/" . $article["id"],"","html","m")}';
    $("#j-qrcode").qrcode({width:160,height:160,text:url});
</script>
{/block}